<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>论坛维护中......</title>
    <link rel="stylesheet" href="http://123.207.19.115:8888/layui/css/layui.css">
    <link rel="stylesheet" href="http://123.207.19.115:8888/bootstrap/css/font-awesome.min.css">
    <script src="http://123.207.19.115:8888/jquery/jquery-3.3.1.min.js"></script>
    <script src="http://123.207.19.115:8888/layui/layui.js"></script>
    <script th:src="@{/ajax.js}"></script>
    <script th:src="@{/const.js}"></script>
    <script th:src="@{/api.js}"></script>
</head>
<body>
</body>
<script>
    layui.use('layer',function () {
        layer.tab({
            skin: 'layui-layer-moon', //样式类名
            area: ['600px', '350px'],
            tab: [{
                title: '论坛维护中',
                content: '<div id="message" style="margin-top: 5%"><fieldset class="layui-elem-field">\n' +
                '  <legend>各位坛友好，论坛功能暂时关闭，带来不便，请谅解</legend>\n' +
                '  <div class="layui-field-box" style="margin-top: 2%;text-align: right" >\n' +
                '    <i class = "icon-spinner icon-spin" ></i>\n' +
                '  程序员哥哥正在加班维护中...</div>\n' +
                '</fieldset></div>'
            }]
        });
    });
    //实时获取论坛状态
  function reback() {
      if(get_config('论坛状态').data.configparameter === "on"){
          skip_to(INDEX,'');
      }
     setTimeout(" reback();",5000);
  }
  reback();

</script>
</html>